# Makefile for clock
#
# 21/11/2008 Initial Release	Eduardo Casal>
#

CFLAGS=	-DPOSIX -D_MINIX -D_POSIX_SOURCE -O -wo 
LDFLAGS=-fnone
BINDIR=	/usr/bin
LIBDIR= /usr/lib/i386

all:	clock

clock:
	cc $(CFLAGS) main.c clock.c -lxlib -o clock 

clean:
	rm -f clock

tar:
	tar cvf clock.tar Makefile clock.c clock.h main.c polar.h

install:	$(BINDIR)/$(PROG) $(LIBDIR)/libxlib.a

$(BINDIR)/$(PROG):	$(PROG)
	install -S 4m -cs -o bin $@ $(BINDIR)
